<?
// Login Block
// Displays Login In Header
// -> All pages
// Creator: Kaosfalco

$skin_parse = '';

if($_SESSION["loggedin"]) 
	{
	  $skin_parse .= '<div class="logintop"><b>Welcome '.ucfirst(strtolower($_SESSION['username'])).'!&nbsp;Not You?&nbsp;<a href="index.php?p=logout">Logout</a></b></div>';
	}
	else
	{
	$skin_parse .= 	'<div class="logintop"><form method="POST" action="./index.php?p=login" enctype="application/x-www-form-urlencoded">
					<input type="hidden" name="return" value="'.$_GET['return'].'" />
					<span class="logintext">'.$lang['login']['2'].'</span>
					<span class="logintext"><input type=text name=username size=15 /></span>
					<span class="logintext">'.$lang['login']['3'].'</span>
					<span class="logintext"><input type=password name=password size=15 /></span>
    					<span class="logintext">
    					<input type="submit" name="Submit" value="Login!" />
    					</span>
					</form></div>';
	 }
?>